<!DOCTYPE html>
<html>
    <head>
        <title>button demo 2</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width">
        <link type="text/css" rel="stylesheet" href="../style/avalon.doc.css"/>
        <script src="../../avalon.js"></script>
        <script src="../style/highlight/shCore.js"></script>
        <script>
            avalon.library("aoyou", {
                $ready: function () {
                    avalon.log("控件已经构建完毕")
                }
            })
            require(["./component/button/avalon.button"], function () {
                avalon.define({
                    $id: "demo"

                })
                avalon.scan()
            })
        </script>
        <style>
            body {
                padding-bottom: 200px;
            }
            fieldset > div {
                margin-bottom: 20px;
            }
            .inline {
                display: inline-block;
            }
        </style>
    </head>
    <body ms-controller="demo">
        <fieldset>
            <legend>size 、width 、color and disabled config</legend>
            <div>
                <aoyou:button size="small" >size small</aoyou:button>
                <aoyou:button>size default</aoyou:button>
                <aoyou:button width="100">custom width</aoyou:button>
                <aoyou:button size="big">size big</aoyou:button>
                <aoyou:button size="large">size large</aoyou:button>
            </div>
            <div>
                <aoyou:button type="icon" icon-position="left" size="small" >icon only</aoyou:button>
                <aoyou:button type="labeledIcon" icon-position="left">icon left</aoyou:button>
                <aoyou:button type="labeledIcon" icon-position="left" width="120">icon left</aoyou:button>
                <aoyou:button type="labeledIcon" icon-position="right" size="big">icon right</aoyou:button>
                <aoyou:button type="labeledIcon" icon-position="left-right" size="large">icon left right</aoyou:button>
            </div>
            <div>
                <aoyou:button type="icon" icon-position="left" size="small" color="primary">color primary</aoyou:button>
                <aoyou:button type="labeledIcon" icon-position="left" color="warning">color warning</aoyou:button>
                <aoyou:button type="labeledIcon" icon-position="left" color="inverse">color inverse</aoyou:button>
                <aoyou:button type="labeledIcon" icon-position="left" width="120" color="danger">color danger</aoyou:button>
                <aoyou:button type="labeledIcon" icon-position="right" size="big" color="success">color success</aoyou:button>
                <aoyou:button type="labeledIcon" icon-position="left-right" size="large" color="info">color info</aoyou:button>
            </div>
            <div>
                <aoyou:button disabled="true" type="icon" icon-position="left" size="small" color="primary">color primary</aoyou:button>
                <aoyou:button disabled="true" type="labeledIcon" icon-position="left" color="warning">color warning</aoyou:button>
                <aoyou:button disabled="true" type="labeledIcon" icon-position="left" color="inverse">color inverse</aoyou:button>
                <aoyou:button disabled="true" type="labeledIcon" icon-position="left" width="120" color="danger">color danger</aoyou:button>
                <aoyou:button disabled="true" type="labeledIcon" icon-position="right" size="big" color="success">color success</aoyou:button>
                <aoyou:button disabled="true" type="labeledIcon" icon-position="left-right" size="large" color="info">color info</aoyou:button>
            </div>
        </fieldset>
    </body>
</html>
